function marquee(options) {
    /*
        options = {
            selector: #selector/.selector/···,
            type: text/···,
            speed: number(integer)
        }
    */
    var setting = {
        selector: options.selector,
        type    : options.type ? options.type : 'img',
        speed   : options.speed ? options.speed : 75
    };

    var scrollText = function() { 
        var scroll_begin = document.querySelector(setting.selector + ' .marquee-scroll-begin'),
            scroll_end   = document.querySelector(setting.selector + ' .marquee-scroll-end'),
            scroll_div   = document.querySelector(setting.selector + ' .marquee-div');

        scroll_div.scrollLeft = 0;

        if (scroll_begin.offsetWidth <= scroll_div.offsetWidth) { return ; }

        if (setting.type == 'text') {
            scroll_end.innerHTML = scroll_begin.innerHTML;
        }
        else {
            var tempUl = scroll_begin.querySelector('ul');
            scroll_end.appendChild(tempUl.cloneNode(true));
        }                    

        var Marquee = function() { 
            if(scroll_begin.offsetWidth - scroll_div.scrollLeft <= 0) 
                scroll_div.scrollLeft -= scroll_begin.offsetWidth; 
            else 
                scroll_div.scrollLeft++; 
        } 

        var MyMar = setInterval(Marquee, setting.speed); 
        scroll_div.onmouseover = function() { clearInterval(MyMar); } 
        scroll_div.onmouseout = function() { MyMar = setInterval(Marquee, setting.speed); } 
    }

    setTimeout(function() {
        scrollText();
    }, 2000);
}